package com.lebang.service.cences;

import com.lebang.domain.CencesAppstoreRegister;
import com.lebang.example.CencesAppstoreRegisterExample;
import com.lebang.mapper.CencesAppstoreRegisterMapper;
import com.lebang.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 渠道注册率统计
 *
 * @Author xwj
 * @Date 2020-04-09
 */
@Service
public class CencesAppstoreRegisterService extends BaseService<CencesAppstoreRegister, Integer, CencesAppstoreRegisterExample> {

    @Autowired
    private CencesAppstoreRegisterMapper cencesAppstoreRegisterMapper;

    public List<Integer> selectByLimit(long page,Integer limit,Integer appId) {
             return cencesAppstoreRegisterMapper.selectByLimit(page,limit,appId);
    }

    public Long countAll(Integer appId) {
        return cencesAppstoreRegisterMapper.countAll(appId);
    }

    public Integer selectOneByLimit(Integer appId) {
        return cencesAppstoreRegisterMapper.selectOneByLimit(appId);
    }
}
